// Copyright  1994-1995 Apple Computer, Inc. All rights reserved

// Serial Port Project Data

constant kAction_Connect := 'connect;
constant kAction_Listen := 'listen;

constant kState_Disconnected := 0;	// ready-to-go (default state)
constant kState_Listen := 1;		// preparation for (asynchronous) listen
constant kState_Listening := 2;		// in-process of (asynchronous) listen
constant kState_Connect := 3;		// preparation for (asynchronous) connect
constant kState_Connecting := 4;	// in-process of (asynchronous) connect
constant kState_Connected := 5;		// connected (requires disconnect)
constant kState_Disconnecting := 6;	// in-process of (asynchronous) disconnect

constant kMessage_Disconnected := "Ready to connect";
constant kMessage_Listening := "Waiting for connection...";
constant kMessage_Connecting := "Connecting...";
constant kMessage_Connected := "Connected, awaiting disconnect...";
constant kMessage_Disconnecting := "Disconnecting, please wait...";
constant kMessage_ConnectFailed := "Connection not established; no response.";
constant kMessage_BufferOverrun := "The communications data buffer was overrun and has been reset.";
constant kMessage_Timeout := "The connection seems to have timed out.";
constant kMessage_PortInUse := "Another application seems to be using the communications port.";
constant kMessage_PortDoesNotExist := "The requested communications port does not exist.";
constant kMessage_OutputTooFast := "Synchronous outputs are occuring too quickly; some data was not output.";

constant kDisconnectMessage := "Disconnect WriteHere";
constant kConnectEstablishedMessage := "WriteHere is now sending data through the serial port. Tap the notify icon and choose '" & kDisconnectMessage & "' to end the remote session.";
constant kRemoteConnectString := "Connect to Remote Computer";
constant kSendRemoteCommandString := "Send Remote Command";
constant kAlreadyConnected := "Remote connection already open. Tap the notify icon and choose '" & kDisconnectMessage & "' to end the remote session.";



constant kStartCommandChar := Chr(1);
constant kStartTextChar := Chr(2);
constant kEndTextChar := Chr(3);
constant kTextEncodingChar := Chr(5);